home *** CD-ROM | disk | FTP | other *** search
Text File | 1987-04-23 | 270 b | 7 lines | [TEXT/SOLV] |
- precision = 2
- monthly_interest = yearly_interest / 12.0;
- months = years * 12.0;
- payments = principle / annuity( monthly_interest / 100.0, months);
- costOfLoan = payments * months - principle;
- costPerPayment = costOfLoan / months;
- principlePerPayment = principle / months;